package com.zhiyou.dao;


import com.zhiyou.bean.User;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.Mapper;


import java.util.ArrayList;
import java.util.Set;

public interface UserMapper extends Mapper<User> {

    Set<String> selectRolenameByUsername(String Username);


    Set<String> selectPermissionByName(String getuUsername);

    ArrayList<User> selectUserAll();

    ArrayList<User> selectByUserName(String username);

    int insertUidRid(@Param("u_id")int uid,@Param("r_id")int rid);

    int updateRoleByUid(@Param("u_id") Integer uId,@Param("r_id") int rid);

    int deleteByUid(int usergetid);
}